package Model;

/**
 * Created with IntelliJ IDEA.
 * User: Женя
 * Date: 03.11.13
 * Time: 19:18
 * To change this template use File | Settings | File Templates.
 */

public class License {
    public String licenseNumber;

    public License() {
    }

    public License(String licenseNumber) {
        this.licenseNumber = licenseNumber;
    }

    public String getLicenseNumber() {
        return licenseNumber;
    }

    public void setLicenseNumber(String licenseNumber) {
        this.licenseNumber = licenseNumber;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        License license = (License) o;

        if (licenseNumber != null ? !licenseNumber.equals(license.licenseNumber) : license.licenseNumber != null)
            return false;

        return true;
    }

    @Override
    public int hashCode() {
        return licenseNumber != null ? licenseNumber.hashCode() : 0;
    }

    @Override
    public String toString() {
        return "License{" +
                "licenseNumber='" + licenseNumber + '\'' +
                '}';
    }
}
